<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">

<head>
<base href="<%=basePath%>">
<title>能动英语客户资源管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="css/style.css" type="text/css" rel="stylesheet" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/tree.js" type="text/javascript"></script>
<script language="javascript" src="<%=basePath%>js/public.js"></script>
<script type="text/javascript" src="<%=basePath%>My97DatePicker/WdatePicker.js"></script>
</head>
<body>
	<!--顶部位置 开始-->
	<%@include file="../controlcenter/header.jsp"%>
	<!--顶部位置 结束-->
	<!--左侧导航 开始-->
	<%@include file="../controlcenter/left.jsp"%>
	<!--左侧导航 结束-->
	<div class="main_content">
		<!--通讯录 开始---->
		<div class="contacts">
			<div class="part_title part_title4">
				<h3>部门</h3>
			</div>
			<div class="news_con">
				<table cellpadding="0" cellspacing="0" border="0" id="table" class="sortable">
					<thead>
						<tr class="row">
							<td class="nosort"><input type="checkbox" /></td>
							<td><span>部门名称</span></td>
							<td><span>部门任务</span></td>
							<td><span>部门负责人</span></td>
							<td><span>操作</span></td>
						</tr>
					</thead>
					<tbody>
						<!---------------------------LOOP START------------------------------>
						<!-- 列表数据栏 -->
						<c:if test="${!empty pm.datas}">
							<c:forEach items="${pm.datas}" var="department">
								<tr>
									<td><input type="checkbox" /></td>
									<td><c:out value="${department.dptName}" /></td>
									<td><c:out value="${department.dptDes}" /></td>
									<td><a href="#">卢惠</a></td>
									<td class="table_center"><a href="#" onClick="openWin('<%=basePath%>department/department_editInput?departmentId=${department.id}','修改部门信息',800,600,'1');return false"> <img
											src="images/icon1.jpg" alt="修改" title="修改" />
									</a> <a href="#" onclick="del('<%=basePath%>department/department_del?departmentId=${department.id}');return false"> <img src="images/icon2.jpg" alt="删除" title="删除" />
									</a></td>
								</tr>
							</c:forEach>
						</c:if>
						<!----------------------LOOP END------------------------------->
					</tbody>
				</table>

				<table borderColor=#ffffff style="FONT-SIZE: 10pt" class="pager">
					<tr height=28px valign="middle">
						<th width="80%"></th>
						<th align=right noWrap width="10%"><pg:pager url='<%=request.getAttribute("javax.servlet.forward.servlet_path").toString().substring(1) %>' items="${pm.total}" maxPageItems="${pagesize}"
								export="currentPageNumber=pageNumber">
								<pg:first>
									<a href="${pageUrl}" id="firstpageurl">首页</a>
								</pg:first>
								<pg:prev>
									<a href="${pageUrl }">《</a>
								</pg:prev>
								<pg:pages>
									<c:choose>
										<c:when test="${currentPageNumber eq pageNumber}">
											<font color="red">${pageNumber }</font>
										</c:when>
										<c:otherwise>
											<a href="${pageUrl }">${pageNumber }</a>
										</c:otherwise>
									</c:choose>
								</pg:pages>
								<pg:next>
									<a href="${pageUrl }">》</a>
								</pg:next>
								<pg:last>
									<a href="${pageUrl }">尾页</a>
								</pg:last>
							</pg:pager> &nbsp;&nbsp;</th>
						<!-- 更改pagesize 开始-->
						<th align=left valign="middle" noWrap width="10%">
							<div style="height: 20px; overflow: hidden; valign: middle">
								<form action="<%=request
					.getAttribute("javax.servlet.forward.servlet_path")
					.toString().substring(1)%>">
									<select name="pagesize" onChange="this.form.submit()" style="height: 16px; overflow: hidden; valign: middle">
										<c:forEach begin="0" end="50" step="5" var="i">
											<c:if test="${i != 0}">
												<option value="${i}" <c:if test="${pagesize eq i }">selected</c:if>>${i}</option>
											</c:if>
										</c:forEach>
									</select> 行/页
								</form>
							</div>
						</th>
					</tr>
				</table>
			</div>
		</div>
		<!--通讯录  结束--->
		<div class="operate_but">
			<a onClick="openWin('<%=basePath%>department/department_addInput','添加新部门',800,600,'1')" class="add_but">添加</a><a href="#" class="delete_but">删除</a><a href="import.html" class="import_but">导入</a><a
				href="import.html" class="export_but">导出</a>
		</div>
		<div class="clear"></div>
	</div>
	<div class="clear">
</div>
<%@include file="../controlcenter/footer.jsp" %>
</body>
</html>
</body>
</html>